package user.model;

import java.sql.Date;

public class Borrow {

	private int recordId;//借阅记录id
	private String userId;//用户id	
	private String userName;//用户名
	private String bookId;//图书id
	private String bookName;//书名
	private Date btime;//借书日期
	private Date rtime;//还书日期
	private int times;//续借次数
	
	
	public Borrow() {
		super();
	}
	public Borrow(int times) {
		super();
		this.times = times;
	}
	public Borrow(int recordId, String userId, String userName, String bookId, String bookName, Date btime, Date rtime,
			int times) {
		super();
		this.recordId = recordId;
		this.userId = userId;
		this.userName = userName;
		this.bookId = bookId;
		this.bookName = bookName;
		this.btime = btime;
		this.rtime = rtime;
		this.times = times;
	}
	public int getRecordId() {
		return recordId;
	}
	public void setRecordId(int recordId) {
		this.recordId = recordId;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getBookId() {
		return bookId;
	}
	public void setBookId(String bookId) {
		this.bookId = bookId;
	}
	public String getBookName() {
		return bookName;
	}
	public void setBookName(String bookName) {
		this.bookName = bookName;
	}
	public Date getBtime() {
		return btime;
	}
	public void setBtime(Date btime) {
		this.btime = btime;
	}
	public Date getRtime() {
		return rtime;
	}
	public void setRtime(Date rtime) {
		this.rtime = rtime;
	}
	
	public int getTimes() {
		return times;
	}
	public void setTimes(int times) {
		this.times = times;
	}
	@Override
	public String toString() {
		return "Borrow [recordId=" + recordId + ", userId=" + userId + ", userName=" + userName + ", bookId=" + bookId
				+ ", bookName=" + bookName + ", btime=" + btime + ", rtime=" + rtime  + "]";
	}
	
}
